// Author: Ivan Kazmenko (gassa@mail.ru)
// Validator for problem "double"
module validate;
import std.algorithm;
import std.ascii;
import std.exception;
import testlib;

immutable int minLen =  1;
immutable int maxLen = 20;

void main (string [] args)
{
	initTestlib !(TestlibRole.validator) (args);

	auto fullName = inFile.readln;
	enforce (minLen <= fullName.length && fullName.length <= maxLen);
	enforce (fullName.all !(isLower));
	foreach (pos; 2..fullName.length)
	{
		enforce (fullName[pos - 2] != fullName[pos] ||
		    fullName[pos - 1] != fullName[pos]);
	}

	inFile.checkEof ();
}
